package com.orafl.use.comorafluse.applicationListenerEventDemo;

import org.springframework.stereotype.Component;

@Component
public class ApplicationListener implements org.springframework.context.ApplicationListener<MultcatApplicationEvent> {

    @Override
    public void onApplicationEvent(MultcatApplicationEvent multcatApplicationEvent) {
        //System.out.println(multcatApplicationEvent.getSource());

        multcatApplicationEvent.doSomething((String) multcatApplicationEvent.getSource());
    }


}
